package com.olddriver.crm.service;

import com.olddriver.crm.domain.Department;
import com.olddriver.crm.page.PageResult;
import com.olddriver.crm.query.QueryObject;

import java.util.List;

public interface IDepartmentService{

    int insert(Department department);

    int update(Department department);

    List<Department> listAll();

    PageResult query(QueryObject qo);

    void updateState(Boolean state, Long id);
}
